package lanqiao._01基础练习;

/**
 * @author 挚爱之夕
 * @version 1.0
 * @implSpec lanqiao._基础练习
 * @since 2022 - 10 - 27 - 21:50
 */
public class _08特殊的数字 {
}
class Main8{
    public static void main(String[] args){
        for(int i = 100; i < 1000; i++){
            if(check(i)) System.out.println(i);
        }
    }
    public static boolean check(int num){
        int sum = 0;
        int p = num;
        while(p != 0){
            sum += Math.pow(p % 10, 3);
            p /= 10;
        }
        return num == sum;
    }
}